package office;

public class Visit{
	Person visiter;
	SpaceDate spaceDate;

	Visit(Person visiter, SpaceDate spaceDate){
		 this.visiter = visiter;
		 this.spaceDate = spaceDate;
	}

	void setDateComeIn(MyDate dateComeIn){
		spaceDate.setDateStart(dateComeIn);
	}

	void setDateComeOut(MyDate dateComeOut){
		spaceDate.setDateFinish(dateComeOut);
	}

	@Override
	public String toString() {
		return "Visit [visiter=" + visiter.toString() + ", spaceDate=" + spaceDate.toString() + "]";
	}
}



 